<template>
    <div background-color="grey">
      <div class="back" v-if="showModal" @click="showModal=false">
          <input text="xxx"/>
      </div>
      <div class="pop" v-if="showModal">
          
      </div>
    </div>
</template>
<script>
export default {
    name: "popup",
    data () {
        return {
            showModal: true
        }
    },
    modules: {
        show(objs) {
            
        }
    }
}
</script>
<style>
/* 弹框样式 */
  .back {
    background-color: #000;
    opacity: 0.3;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1
  }

  .pop {
    background-color: #fff;
    position: fixed;
    top: 100px;
    left: 300px;
    width: calc(100% - 600px);
    height: calc(100% - 200px);
    z-index: 2
  }

</style>